.class Lcom/brixd/niceapp/activity/NiceAppSearchActivity$7;
.super Ljava/lang/Object;
.source "NiceAppSearchActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->requestTags()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 226
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$7;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 2
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 230
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 226
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$7;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 6
    .param p1, "jsonObject"    # Lorg/json/JSONObject;
    .param p2, "response"    # Lretrofit/client/Response;

    .prologue
    .line 234
    const-string v2, "tags"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    .line 235
    .local v0, "tagArray":Lorg/json/JSONArray;
    invoke-static {v0}, Lcom/brixd/niceapp/model/TagModel;->parseTagModels(Lorg/json/JSONArray;)Ljava/util/List;

    move-result-object v1

    .line 236
    .local v1, "tags":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/TagModel;>;"
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_18

    .line 237
    invoke-static {v0}, Lcom/brixd/niceapp/service/AppService;->cacheTagsForSearch(Lorg/json/JSONArray;)V

    .line 239
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$7;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # invokes: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->initTagView(Ljava/util/List;)V
    invoke-static {v2, v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$400(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;Ljava/util/List;)V

    .line 241
    :cond_18
    return-void
.end method
